<?php

namespace App\Models\SubAccount;


use App\Models\SystemUser;
use Illuminate\Database\Eloquent\Model;

class SubAccountRepayLog extends Model
{

    protected $guarded=[];

    protected function serializeDate(\DateTimeInterface $date)
    {
        return $date->format('Y/m/d H:i:s');
    }

    public function subAccount(){
        return $this->belongsTo(SubAccount::class,'sub_account_id','id');
    }

    public function repayAdmin(){
        return $this->belongsTo(SystemUser::class,'repay_admin_id','id');
    }


}
